// 客户单位员工
import request from "@/utils/https/requests";

// 列表
export function dwMenList(data: any) {
    return request({
        url: "/dwMen/list", method: "post", data,
    });
}

// 添加
export function postAddDwMen(data: any) {
    return request({
        url: "/dwMen/postAdd", method: "post", data,
    });
}

// 修改
export function postModDwMen(data: any) {
    return request({
        url: `/dwMen/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteDwMen(id: string) {
    return request({
        url: `/dwMen/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteDwMen = (id) => {
    return request({
        url: `/dwMen/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function dwMenDetail(id: string) {
    return request({
        url: `/dwMen/detail/${id}`, method: "post",
    });
}